package com.zhangchuchu.neohealth.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.zhangchuchu.neohealth.entity.DTO.FavoritesDTO;
import com.zhangchuchu.neohealth.entity.Favorites;
import com.zhangchuchu.neohealth.mapper.FavoritesMapper;
import com.zhangchuchu.neohealth.service.FavoritesService;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class FavoritesServiceImpl extends ServiceImpl<FavoritesMapper, Favorites> implements FavoritesService {
    @Override
    public List<FavoritesDTO> getFavoriteArticles(Integer userId) {
        return baseMapper.getFavoriteArticles(userId);
    }

    @Override
    public List<FavoritesDTO> getFavoritePosts(Integer userId) {
        return baseMapper.getFavoritePosts(userId);
    }
}
